import { request} from '@/utils/request.util';
import type {Root,DeptListRoot} from '@/types/root'
import type { Pagination } from '@/types/pagination';
import type { Response, Res } from '@/types/common';

import type {GearInfo,GearResponse,GearTable,GearPagination} from '@/types/gear'
// ?gearName=&pageNo=1&pageSize=10

//查询充值档位列表
export const getGearList =  (body:GearPagination) => request.get<GearResponse> ("/member/getGearList", {
  params: body
});  

//添加充值档位
export const addGear = (body: GearInfo) => request.post<Response<Res>>("/member/addGear",body);

//编辑充值档位
export const updateGear = (body:GearInfo) => request.post<Response<Res>>("/member/updateGear",body);

//删除充值档位
export const deleteGear = (gearId:string) => request.post<Response<Res>>("/member/deleteGear",{gearId});

//启用充值档位
export const enableGear = (gearId:string) => request.post<Response<Res>>("/member/enableGear",{gearId});

//停用充值档位
export const disableGear = (gearId:string) => request.post<Response<Res>>("/member/disableGear",{gearId});

